Hello, I have created my own version of shareable edit. I cut up all the sections correctly, execute the trigger commande, save the module then close the module through DXL.
I get a weird behavior. If I close the module after setting the following trigger: trigger("shareable", module->module_fullname, post, open, 9, shareable_code) I have to open and close the module in order for the shareable trigger to properly be installed. If on the other hand I do not close the module after setting the trigger and close the module using the X window button then the trigger is properly installed the next time I open the module. Is there something going on in the background of a window X close that is not done by closing a module through DXL?
Thanks in advance Patrick PatrickGuay - Tue Apr 29 09:25:55 EDT 2014 |
Re: Set Shareable trigger not active when opening a module I am not seeing what you are seeing; when I close from DXL and then re-open the module, my simple code runs OK as expected. Let me brain storm: I notice though that you don't have to actually save the module. I wonder then if perhaps your code is running so fast that the actual trigger hasn't bounced back from the server by the time you issue the 2nd open? Are you running the trigger code in the context of the module being "current"? -Louie |